﻿<%@ Page Language="C#" MasterPageFile="~/RioCMS.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebView.Fonte.Default" Title="RioCMS - Gerenciar Fontes de Dados" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
	<h3>Fonte de dados</h3>
	<asp:Panel ID="Panel1" runat="server">
		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
			AutoGenerateSelectButton="True" BackColor="LightGoldenrodYellow" BorderColor="Tan"
			BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None">
			<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
			<SelectedRowStyle BackColor="Chocolate" ForeColor="ControlDark" />
			<FooterStyle BackColor="Tan" />
			<Columns>
				<asp:BoundField DataField="id" Visible="false" />
				<asp:BoundField DataField="nome" HeaderText="nome" ReadOnly="True" />
				<asp:BoundField DataField="categoria" HeaderText="categoria" ReadOnly="True" />
				<asp:BoundField DataField="descricao" HeaderText="descricao" ReadOnly="True" />
			</Columns>
			<HeaderStyle BackColor="Tan" Font-Bold="True" />
			<AlternatingRowStyle BackColor="PaleGoldenrod" />
		</asp:GridView>
		<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Adicionar"
			Width="100px" />
		<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Remover" Width="100px" />
		<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="Editar" Width="100px" />
		<asp:Button ID="Button6" runat="server" OnClick="Button6_Click" Text="Copiar" Width="100px" />
	</asp:Panel>
	<asp:Panel ID="Panel2" runat="server" Visible="false">
		<fieldset style="height: 170px;">
			<legend><asp:Label ID="Label3" runat="server" Text="Adicionar"></asp:Label></legend>
			<asp:HiddenField ID="HiddenField1" runat="server" />
			<asp:Label ID="Label1" runat="server" Text="Nome"></asp:Label><br />
			<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
			<asp:Label ID="Label4" runat="server" Text="categoria"></asp:Label><br />
			<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br />
			<asp:Label ID="Label5" runat="server" Text="descricao"></asp:Label><br />
			<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br />
		</fieldset>
		
		<asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Confirmar"
			Width="100px" />
		<asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="Cancelar" Width="100px" />
	</asp:Panel></asp:Content>
